<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绑定样式</title>
    <!-- 引入vue -->
    <script type="text/javascript" src="../js/vue.js"></script>
    <style>
        .normal {
            background-color: orange;
            height: 200px;
            width: 200px;
        }

        .basic {
            background-color: hotpink;
            height: 300px;
            width: 300px;
        }
    </style>
</head>

<body>
    <!-- 准备好一个容器 -->
    <div id="demo">
        <h1 class="normal basic">{{name}}</h1>
    </div>
    <script>
        Vue.config.productionTip = false // 以阻止 vue 在启动时生成生产提示。

        new Vue({
            el: '#demo',
            data: {
                name: ''
            }
        })
    </script>
</body>

</html>